package com.example.mybatisplusproject.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.example.mybatisplusproject.annotation.EncryptDecryptClass;
import com.example.mybatisplusproject.annotation.EncryptDecryptField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @author zls
 * @date 2021/7/10 4:10 下午
 */
@EqualsAndHashCode(callSuper = true)
@TableName("tb_user")
@Data
@EncryptDecryptClass
@AllArgsConstructor
@NoArgsConstructor
public class User extends BaseEntity{
    @EncryptDecryptField
    private String name;
    private Integer age;

    public static User defaultUser() {
        return new User("张力升",21);
    }
}
